package com.jingyanzi.member.service;

import com.jingyanzi.member.domain.MemberDO;
import com.jingyanzi.member.domain.result.ResultDO;
import com.jingyanzi.member.query.MemberQueryDO;

public interface IMemberService {

	public ResultDO add(MemberDO domain);
	
	public ResultDO validateMobile(String telephone);
	
	public ResultDO remove(Integer id, String cancelInfo);
	
	public ResultDO modifi(MemberDO domain);
	
	public ResultDO get(Integer id);
	
	/**
	 * 只查询会员表信息
	 * @param id
	 * @return
	 */
	public ResultDO getMember(Integer id);
	
	public ResultDO query(MemberQueryDO query);

	public ResultDO exchangeGift(MemberDO domain);
	/** 会员激活 */
	public ResultDO activity(MemberDO domain);

	/**
	 * 会员续费，或者重新开卡 <b>Description:会员续费，或重新开卡</b><br>
	 * 
	 * @param domain
	 *            会员DO对象
	 * @param isRenewal
	 *            是否是续费
	 * @return ResultDO
	 * @Note <b>Author:</b> Reading.Reagan <br>
	 *       <b>Date:</b> 2018年7月13日 下午1:21:24 <br>
	 *       <b>Version:</b> 1.0
	 */
	public ResultDO reOpenMember(MemberDO domain, boolean isRenewal);

}
